<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title>数据客服中心</title>
		<link rel="stylesheet" type="text/css" href="layui/css/layui.css" />
		<link rel="stylesheet" type="text/css" href="css/Service_data.css" />
		<link rel="stylesheet" type="text/css" href="css/_reset.css" />
		<link rel="stylesheet" type="text/css" href="css/common.css" />
	</head>
	<style>
		html,body{
				overflow-y: auto!important;
			}
		#edui1_bottombar {
			display: none;
		}
		#quick_add_textarea{
			height: 100px;
			width: 75%;
			margin-top: 10px;
			vertical-align: middle;
			resize: none;
			padding: 5px;
		}
	</style>

	<body>
		<div class="Service_web commons commons_son">
			<!--内容-->
			<div class="content">
				<div class="layui-tab layui-tab-card">
					<ul class="layui-tab-title">
						<li class="layui-this">线索添加</li>
						<li class="hide admin_gl" data-type="admin_gl">53账号管理</li>
					</ul>
					<div class="layui-tab-content">
						<!--线索添加-->
						<div class="layui-tab-item  layui-show">
							<div class="layui-upload upload_to">
								<input type="file" name="file" id="test8">
								<button style="padding: 5px;background: #37b6e0;color: white;border-radius: 5px;" type="button" id="test9">开始上传</button>
								<a href="http://121.8.198.101:8083//admin/Download" id="download">
									点击下载
								</a>(下载Excel文件)
								<p style="color: red;">（注意：导入excel文件允许类型："xls"(文件总大小不能超过20MB）</p><br>
							</div>
							<div class="con layui-form">
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">创建日期范围：</label>
										<div class="layui-input-inline">
											<input type="text" class="layui-input" name="time" id="time" placeholder="请选择日期">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">下发部门：</label>
										<div class="layui-input-inline">
											<input type="tel" name="unit" id="unit" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">账号：</label>
										<div class="layui-input-inline">
											<input type="tel" name="account" id="account" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">负责人</label>
										<div class="layui-input-inline">
											<input type="tel" name="name" id="name_fz" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">咨询项目：</label>
										<div class="layui-input-inline">
											<input type="tel" name="project" id="project" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">创建人：</label>
										<div class="layui-input-inline">
											<input type="tel" name="create_name" id="create_name" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">电话：</label>
										<div class="layui-input-inline">
											<input type="tel" name="phone" id="phone" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">资源编码：</label>
										<div class="layui-input-inline">
											<input type="tel" name="code" id="code" class="layui-input">
										</div>
									</div>
									<button id="adduser_seach" class="layui-btn layui-btn-radius" data-type="reload_sbm"><i class="layui-icon">&#xe615;</i>&nbsp;&nbsp;搜索</button>

									<ul class="con fr layui-nav">
										<li class="layui-nav-item add_vign_down hide" data-type = "add_vign_downtype" style="background: #37b6e0;">
											<a style="color: white;cursor: pointer;">原始数据下载</a>
										</li>
										<li class="layui-nav-item add_vign_li hide">
											<a class="add_vigne" style="color: white;cursor: pointer;"><i class="layui-icon">&#xe654;</i>新建线索</a>
										</li>
										<li class="layui-nav-item quick_add_li" data-type = "quick_add_type" style="background: #009688;">
											<a class="quick_add" style="color: white;cursor: pointer;"><i class="layui-icon">&#xe654;</i>快速添加</a>
										</li>
									</ul>
								</div>
							</div>

							<table id="LAY_table_adduser" lay-filter="leaders"></table>
							<script type="text/html" id="barDemo1">
								<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">查看/修改</a>
								<a class="layui-btn clue_dele layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
								<a class="layui-btn layui-btn-xs" lay-event="undate">更新客户</a>
								<!--<a class="layui-btn layui-btn-danger" lay-event="del">修改</a>-->
							</script>
							<script type="text/html" id="zizeng">
								{{d.LAY_TABLE_INDEX+1}}
							</script>
							<!--点击编辑-->
							<div class="view_pop">
								<div class="layui-form test">
									<div class="title">
										修改公司架构
									</div>
									<table class="table table-hover">
										<tbody>
											<tr>
												<td class="tdleft">账户名称：</td>
												<td class="tdright"><input type="text" name="" id="" value="" /></td>
											</tr>
											<tr>
												<td class="tdleft">公司名称：</td>
												<td class="tdright"><input type="text" name="" id="" value="" /></td>
											</tr>
											<tr>
												<td class="tdleft">媒介：</td>
												<td class="tdright"><input type="text" name="" id="" value="" /></td>
											</tr>
											<tr>
												<td class="tdleft">项目：</td>
												<td class="tdright"><input type="text" name="" id="" value="" /></td>
											</tr>
											<tr>
												<td class="tdleft">负责人：</td>
												<td class="tdright"><input type="text" name="" id="" value="" /></td>
											</tr>
											<tr>
												<td class="tdleft">架构：</td>
												<td class="tdright"><input type="text" name="" id="" value="" /></td>
											</tr>
											<tr>
												<td class="tdleft">返点：</td>
												<td class="tdright"><input type="text" name="" id="" value="" /></td>
											</tr>
											<tr>
												<td class="tdleft">联系人：</td>
												<td class="tdright"><input type="text" name="" id="" value="" /></td>
											</tr>
										</tbody>
										<tfoot>
											<tr>
												<td class="table_foot" colspan="2">
													<input class="layui-btn layui-btn-radius layui-btn-normal" type="button" name="" id="save" value="保存" />
													<input class="layui-btn layui-btn-radius layui-btn-danger" type="button" name="" id="cancel" value="取消" />
												</td>
											</tr>
										</tfoot>
									</table>
								</div>
							</div>

							<!--点击新建线索//添加线索-->
							<div class="add_clues">
								<div class="content">
									<div class="page-header">
										编辑信息
									</div>
									<div class="form_content">
										<form class="layui-form" id="form_add" action="#" method="post">
											<input type="hidden" name="clue_id" id="clue_id" value="" />
											<input type="hidden" name="owner_role_id" id="owner_role_id" value="">
											<table class="table" width="95%" border="0" cellspacing="1" cellpadding="0">
												<tfoot>
													<tr>
														<td style="text-align:center;border-bottom: none;" colspan="6">
															<button id="submit_users" class="layui-btn" lay-submit="" lay-filter="demos">保存</button>
															<button class="layui-btn layui-btn-danger return_add_clues" type="button" value="返回">返回</button>
														</td>
													</tr>
												</tfoot>
												<tbody>
													<tr>
														<th colspan="4">主要信息</th>
													</tr>
													<tr>
														<td class="tdleft">负责人:</td>
														<td class="inputs">
															<input type="text" id="owner_name" value="" name="owner_name">
														</td>
														<td class="tdleft" width="15%">咨询项目:</td>
														<td class="inputs" width="35%">
															<input type="text" id="clue_project" name="clue_project" maxlength="" value="">
															<span class="fr" style="color:red;margin-bottom: 5px;">*</span>
														</td>
													</tr>
													<tr>
														<td class="tdleft" width="15%">联系电话:</td>
														<td class="inputs" width="35%">
															<input type="text" id="clue_phone" name="clue_phone" maxlength="" value="">
														</td>
														<td class="tdleft" width="15%">咨询地:</td>
														<td class="inputs" width="35%">
															<input type="text" id="clue_area" name="clue_area" maxlength="" value="">
															<span class="fr" style="color:red;margin-bottom: 5px;">*</span>
														</td>
													</tr>
													<tr>
														<td class="tdleft" width="15%">微信:</td>
														<td class="inputs" width="35%">
															<input type="text" id="clue_wechat" name="clue_wechat" maxlength="" value="">
														</td>
														<td class="tdleft" width="15%">qq:</td>
														<td class="inputs" width="35%">
															<input type="text" id="clue_qq" name="clue_qq" maxlength="" value="">
														</td>
													</tr>
													<tr>
														<td class="tdleft" width="15%">下发部门:</td>
														<td class="inputs" colspan="3" width="35%">
															<input type="text" id="clue_unit" name="clue_unit" maxlength="" value="">
													</tr>
													<tr>
														<td class="tdleft" width="15%">平台:</td>
														<td class="inputs" width="35%">
															<input type="text" name="clue_platform" id="clue_platform" value="" />
															<span class="fr" style="color:red;margin-bottom: 5px;margin-right: 5px;">*</span>
														</td>
														<td class="tdleft" width="15%">客户姓名:</td>
														<td class="inputs" width="35%">
															<input type="text" id="clue_client" name="clue_client" maxlength="" value=""> &nbsp;
														</td>
													</tr>
													<tr>
														<td class="tdleft" width="15%">账号:</td>
														<td class="inputs" width="35%">
															<input type="text" id="clue_account_name" name="clue_account_name" maxlength="" value=" ">
														</td>
														<td class="tdleft" width="15%">分类:</td>
														<td class="inputs" width="35%">
															<select id="clue_category" name="clue_category">
																 <option value="0">网谈</option>
																<option value="1">留言</option>
																<op tion value="2">热线</option>
															</select>
														</td>
													</tr>
													<tr>
														<td class="tdleft" width="15%">市:</td>
														<td class="inputs" width="35%">
															<input type="text" id="clue_ip" name="clue_ip" maxlength="" value="">
														</td>
														<td class="tdleft" width="15%">来源:</td>
														<td class="inputs" width="35%">
															<select id="clue_source" name="clue_source">
																<option value="">--请选择--</option>
																<option value="竞价">竞价</option>
																<option value="批量">批量</option>
																<option value="优化">优化</option>
																<option value="微信">微信</option>
																<option value="联展">联展</option>
																<option value="留言">留言</option>
															</select>
														</td>
													</tr>
													<!-- <tr>
														<th colspan="4">附加信息</th>
													</tr> -->
													<tr>
														<td class="tdleft" width="15%">资源编码:</td>
														<td class="inputs" width="35%">
															<input type="text" id="clue_coding" name="clue_coding" maxlength="" value=""> &nbsp;
														</td>
														<td class="tdleft" width="15%">聊天平台:</td>
														<td class="inputs" width="35%">
															<input id="clue_source_platform" type="text" name="clue_source_platform" value="" />
															<!--<select id="clue_source_platform" name="clue_source_platform">
																<option value="">--请选择--</option>
																<option value="53客服">53客服</option>
																<option value="通宝">通宝</option>
																<option value="tq">tq</option>
																<option value="营销qq">营销qq</option>
															</select>-->
														</td>
													</tr>
													<tr>
														<td class="tdleft" width="15%">咨询页面:</td>
														<td class="inputs" width="35%">
															<input type="text" id="clue_source_link" name="clue_source_link" value="">
														</td>
														<td class="tdleft" width="15%">关键词:</td>
														<td class="inputs" width="35%">
															<input type="text" id="clue_key" name="clue_key" maxlength="" value="">
														</td>
													</tr>
													<tr>
														<td style="border-bottom: none;" class="tdleft" width="15%">关心问题:</td>
														<td style="border-bottom: none;" colspan="3">
															<script id="editorxg" name="clue_details" type="text/plain" style="width:100%;height:5vh;"></script>
														</td>
													</tr>
												</tbody>
											</table>
										</form>
									</div>
								</div>
							</div>

							<!--点击admin框-->
							<div class="Trace_leader">
								<div class="content">
									<div class="headerss">
										线索负责人
									</div>
									<div class="layui-form">
										<div class="layui-form-item">
											<label class="layui-form-label">选择部门：</label>
											<div class="layui-inline">
												<div class="layui-input-inline">
													<select name="quiz1" id="select_name3" lay-filter="select_value2">
													</select>
												</div>
											</div>
										</div>
										<table id="LAY_table_users" lay-filter="leader"></table>
										<script type="text/html" id="radioTpl">
											<input type="radio" name="sexRadio" lay-event="radios" value="{{d.id}}" title=" " lay-filter="radiodemo">
										</script>
									</div>
									<button class="layui-btn layui-btn-xs layui-btn-radius OkBtn">OK</button>
									<button class="layui-btn layui-btn-xs layui-btn-radius layui-btn-danger Cancel">Cancel</button>
								</div>
							</div>
						</div>
						<!--53账号管理-->
						<div class="layui-tab-item">
							<div class="layui-upload upload_to_53 hide">
								<input type="file" name="file" id="test10">
								<button style="padding: 5px;background: #37b6e0;color: white;border-radius: 5px;" type="button" id="test11">开始上传</button>
								<p style="color: red;">（注意：导入excel文件允许类型："xls"(文件总大小不能超过20MB）</p><br>
							</div>
							<div class="con layui-form">
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">主账号：</label>
										<div class="layui-input-inline">
											<input type="tel" name="unit" id="direct_num" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">子账号：</label>
										<div class="layui-input-inline">
											<input type="tel" name="phone" id="son_num" class="layui-input">
										</div>
									</div>
									<button id="adduser_seachs" class="layui-btn layui-btn-radius" data-type="reload_sbm_num"><i class="layui-icon">&#xe615;</i>&nbsp;&nbsp;搜索</button>
									<ul class=" layui-nav fr" style="margin: 0px;margin-left: 180px;">
										<li style="background: red;cursor: pointer;" class="layui-nav-item add_dele hide" data-type='add_dele'>
											<a style="color: white;">批量删除</a>
										</li>
										<li style="background: #72d78e;cursor: pointer;" class="layui-nav-item add_accunt" data-type='add_accunt'>
											<a><i class="layui-icon">&#xe654;</i>添加账号</a>
										</li>
									</ul>
								</div>
							</div>
							<table id="LAY_table_account" lay-filter="account_admin"></table>
							<script type="text/html" id="account_btn">
								<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail_admin">查看/编辑</a>
							</script>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="layui-form" id="Edit_content" style="display: none;">
			&emsp;&emsp;账号：
			<input type="text" name="account_name" id="account_name" value="" /><br>&emsp;主账号：
			<input type="text" name="main_account" id="main_account" value="" /><br> &emsp;子账号：
			<input type="text" name="personal_account" id="personal_account" value="" /><br> 账号名称：
			<input type="text" name="full_account" id="full_account" value="" /><br> &emsp;&emsp;备注：
			<input type="text" name="name" id="name" value="" /><br> &emsp;&emsp;编号：
			<input type="text" name="numbering" id="numbering" value="" /><br>&emsp;&emsp;项目：
			<input type="text" name="projectt" id="projectt" value="" /><br>&emsp;APPID：<input type="text" name="appid" id="appid" value="" />
			APPSECRET：<input style="width: 69%;" type="text" name="appsecret" id="appsecret" value="" /><br>账号状态：
			<select id="status_val" name="">
			</select><br>推送状态：
			<select id="r_status" name="">
			</select>
			<style>
				#Edit_content .layui-form-select{
					width: 78%!important;
				}
			</style>
		</div>
		<div class="layui-form" id="add_downs" style="display: none;width: 95%;margin: 0 auto;margin-top: 10px;">
			创建日期：
			<input type="text" name="account_name" id="times" value="" />
		</div>
		<!--快速添加-->
		<div id="quick_add_div" style="display: none;">
			&emsp;&emsp;线索：
			<input type="text" name="" id="quick_add_con" value="" /><br>咨询页面：
			<input type="text" name="" id="quick_add_href" value="" /><br> 关心问题：
			<script id="editorTj" name="client_comm" type="text/plain"></script>
		</div>
		<style type="text/css">
			#edui107_iframeholder{
				height: 150px!important;
			}
			#edui1_toolbarbox{
				display: none;
			}
			#quick_add_div #edui1_iframeholder{
				height: auto!important;
			}
			#edui1{
				padding: 1px;
				width: 78%;
				height:100px;
				float: right;
				overflow: hidden;
			}
			#edui107_bottombar{
				display: none;
			}
		</style>
	</body>
	<script src="js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/header.js" type="text/javascript" charset="utf-8"></script>
	<script src="layui/layui.js" type="text/javascript" charset="utf-8"></script>
	<script src="utf8-php/ueditor.config.js" type="text/javascript" charset="utf-8"></script>
	<script src="utf8-php/ueditor.all.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="utf8-php/lang/zh-cn/zh-cn.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/Service_data.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/common.js" type="text/javascript" charset="utf-8"></script>
	<link rel="stylesheet" type="text/css" href="css/common.css" />
	<script type="text/javascript">
		$('.Service_header').addClass('layui-this');
	</script>
	<script type="text/javascript">
		var ue = UE.getEditor('editorxg', { initialFrameWidth: null , autoHeightEnabled: false});
		var ue = UE.getEditor('editorTj', { initialFrameWidth: null , autoHeightEnabled: false});
	</script>

</html>